package com.yequan.hbb.view.fragment.ques_page_fragment;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.yequan.hbb.R;
import com.yequan.hbb.app.MyApplication;

/**
 * A simple {@link Fragment} subclass.
 */
public class SearchFragment extends Fragment {


    private View title;
    private View radioGroup;

    public SearchFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        radioGroup = MyApplication.main.findViewById(R.id.main_rg);
        radioGroup.setVisibility(View.GONE);
        title = MyApplication.main.findViewById(R.id.rl);
        title.setVisibility(View.GONE);
        return inflater.inflate(R.layout.fragment_search, container, false);
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        title.setVisibility(View.VISIBLE);
        radioGroup.setVisibility(View.VISIBLE);
    }
}
